# include <stdio.h>
int main()
{
	float m,n,i,z,a,b,c;

	scanf("%f %f",&m,&n);
	for(i=1;i<=m;i++)
	{
	for(b=0,z=1;z<=n;z++)
	{
	scanf("%f",&a);
	b=b+a;
	}
	printf("%.2f\n",b/n);
	}
	return 0;
}
